package dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import pojo.Archive;
public interface ArchiveDao {
    public void add(
    		@Param("archive_id")String archive_id,
    		@Param("identity")String identity,
    		@Param("name")String name,
    		@Param("gender")String gender,
    		@Param("birthday")String birthday,
    		@Param("date_retire1")String date_retire1,
    		@Param("date_retire2")String date_retire2,
    		@Param("sp")String sp,
    		@Param("fc")String fc,
    		@Param("title")String title,
    		@Param("seniority")String seniority);
    public List<Archive> queryone(@Param("search")String search);  
    public Archive query(@Param("id")String id);
    public void update(
    		@Param("id")String id,
    		@Param("identity")String identity,
    		@Param("name")String name,
    		@Param("gender")String gender,
    		@Param("birthday")String birthday,
    		@Param("date_retire1")String date_retire1,
    		@Param("date_retire2")String date_retire2,
    		@Param("sp")String sp,
    		@Param("fc")String fc,
    		@Param("title")String title,
    		@Param("seniority")String seniority);
    public List<Map> queryword(@Param("archive_id") String archive_id);
    public void deletephoto(@Param("id") String id);
    public List<Map> querydel(@Param("id") String id);
    public List<Map> querymohu(
    		@Param("id")String id,
    		@Param("archive_id")String archive_id,
    		@Param("identity")String identity,
    		@Param("name")String name,
    		@Param("gender")String gender,
    		@Param("birthday")String birthday,
    		@Param("date_retire1")String date_retire1,
    		@Param("date_retire2")String date_retire2,
    		@Param("sp")String sp,
    		@Param("fc")String fc,
    		@Param("title")String title,
    		@Param("seniority")String seniority
    		);
    public Map<String ,Object> lastid();
    public List<Map> querylist(@Param("userId")String user_id);
    public List<Map> querylistadd(@Param("userId")String user_id);
    public List<Map> querycount(
    		                    @Param("date1") String date1,
    		                    @Param("date2") String date2);
    
}
